package com.example.common.exception;

import lombok.Data;

/**
 * 业务异常
 * 
 * @author airobot
 */
@Data
public final class ServiceException extends RuntimeException
{
    private static final long serialVersionUID = 1L;

    /**
     * 错误码
     */
    private Integer code;

    /**
     * 错误提示
     */
    private String message;

    /**
     * 错误明细，内部调试错误
     * 和{@link “CommonResult#getDetailMessage()”}一致的设计
     */
    private String detailMessage;
}